class Comment < ActiveRecord::Base
belongs_to :media
validates_presence_of :comment,:name
validates_format_of :email,:with => /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/

end
